package com.wrx.club_management_backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wrx.club_management_backend.common.CommonEntity;
import lombok.Data;

@TableName("tb_user")
@Data
public class User extends CommonEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String nickname;

    private String password;

    private Long dept;

    private Long maj;

    private String sno;

    private String avatar;

    private int status;

    private int role;

    @TableField(exist = false)
    private boolean online;

    @TableField(exist = false)
    private String inviteCode;

}
